package com.smart.campus.interfaces;

import com.smart.campus.dto.ShStudent;
import com.smart.campus.pojo.PagedResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ShStudentServiceApi {
    @RequestMapping(value = "shStudent/pageShStudent")
    public PagedResponse<ShStudent> pageShStudent(@RequestBody ShStudent shStudent, @RequestParam(value = "pageNum")Integer pageNum,@RequestParam(value = "pageSize")Integer pageSize);
    @RequestMapping(value = "shStudent/addShStudent")
    public void addShStudent(@RequestBody ShStudent shStudent);

    @RequestMapping(value = "shStudent/delShStudent")
    public void delShStudent(@RequestParam(value = "id")Integer id);

    @RequestMapping(value = "shStudent/findShStudentById")
    public ShStudent findShStudentById(@RequestParam(value = "id")Integer id);

    @RequestMapping(value = "shStudent/updateShStudent")
    public void updateDateShStudent(@RequestBody ShStudent shStudent);


    /**
     * 导入
     * @param file
     */
    @RequestMapping(value = "shStudent/importExcel")
    public void importExcel(@RequestPart("file")MultipartFile file) throws Exception;

    /**
     * 导出
     * @param shStudent
     * @return
     */
    @RequestMapping(value = "findShStudentList")
    List<ShStudent> findShStudentList(@RequestBody ShStudent shStudent);
}
